*This code is needed to reproduces the results reported in:
*Steiner, Nils D. and Matthias Mader. Intra-Party Heterogeneity in Policy Preferences and Its Effect on Issue Salience: Developing and Applying a Measure Based on Elite Survey Data. Party Politics.

*Read instructions in "1 main reproduction file.do"

gen party_id_Manifesto=.c				
replace 	party_id_Manifesto=	63620	 if partyelec_id==	1200701
replace 	party_id_Manifesto=	63320	 if partyelec_id==	1200702
replace 	party_id_Manifesto=	63810	 if partyelec_id==	1200703
replace 	party_id_Manifesto=	63321	 if partyelec_id==	1200704
replace 	party_id_Manifesto=	63110	 if partyelec_id==	1200705
replace 	party_id_Manifesto=	.a	 if partyelec_id==	1200706
replace 	party_id_Manifesto=	.a	 if partyelec_id==	1200707
replace 	party_id_Manifesto=	.a	 if partyelec_id==	1200708
replace 	party_id_Manifesto=	63320	 if partyelec_id==	1201001
replace 	party_id_Manifesto=	63110	 if partyelec_id==	1201002
replace 	party_id_Manifesto=	63620	 if partyelec_id==	1201003
replace 	party_id_Manifesto=	43520	 if partyelec_id==	2200701
replace 	party_id_Manifesto=	43420	 if partyelec_id==	2200702
replace 	party_id_Manifesto=	43810	 if partyelec_id==	2200703
replace 	party_id_Manifesto=	43320	 if partyelec_id==	2200704
replace 	party_id_Manifesto=	43110	 if partyelec_id==	2200705
replace 	party_id_Manifesto=	43120	 if partyelec_id==	2200706
replace 	party_id_Manifesto=	43531	 if partyelec_id==	2200707
replace 	party_id_Manifesto=	43540	 if partyelec_id==	2200708
replace 	party_id_Manifesto=	43530	 if partyelec_id==	2200709
replace 	party_id_Manifesto=	43711	 if partyelec_id==	2200710
replace 	party_id_Manifesto=	43710	 if partyelec_id==	2200711
replace 	party_id_Manifesto=	43901	 if partyelec_id==	2200712
replace 	party_id_Manifesto=	43220	 if partyelec_id==	2200713
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2200714
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2200715
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2200716
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2200720
replace 	party_id_Manifesto=	43420	 if partyelec_id==	2201101
replace 	party_id_Manifesto=	43520	 if partyelec_id==	2201102
replace 	party_id_Manifesto=	43320	 if partyelec_id==	2201103
replace 	party_id_Manifesto=	43810	 if partyelec_id==	2201104
replace 	party_id_Manifesto=	43530	 if partyelec_id==	2201107
replace 	party_id_Manifesto=	43540	 if partyelec_id==	2201108
replace 	party_id_Manifesto=	43220	 if partyelec_id==	2201109
replace 	party_id_Manifesto=	43120	 if partyelec_id==	2201110
replace 	party_id_Manifesto=	43902	 if partyelec_id==	2201111
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2201112
replace 	party_id_Manifesto=	43110	 if partyelec_id==	2201113
replace 	party_id_Manifesto=	43710	 if partyelec_id==	2201115
replace 	party_id_Manifesto=	43711	 if partyelec_id==	2201116
replace 	party_id_Manifesto=	43901	 if partyelec_id==	2201118
replace 	party_id_Manifesto=	43811	 if partyelec_id==	2201119
replace 	party_id_Manifesto=	.a	 if partyelec_id==	2201120
replace 	party_id_Manifesto=	41320	 if partyelec_id==	3200501
replace 	party_id_Manifesto=	41521	 if partyelec_id==	3200502
replace 	party_id_Manifesto=	41420	 if partyelec_id==	3200504
replace 	party_id_Manifesto=	41113	 if partyelec_id==	3200505
replace 	party_id_Manifesto=	41222	 if partyelec_id==	3200506
replace 	party_id_Manifesto=	.a	 if partyelec_id==	3200507
replace 	party_id_Manifesto=	.a	 if partyelec_id==	3200520
replace 	party_id_Manifesto=	.a	 if partyelec_id==	3200597
replace 	party_id_Manifesto=	41320	 if partyelec_id==	3200901
replace 	party_id_Manifesto=	41521	 if partyelec_id==	3200902
replace 	party_id_Manifesto=	41420	 if partyelec_id==	3200904
replace 	party_id_Manifesto=	41113	 if partyelec_id==	3200905
replace 	party_id_Manifesto=	41223	 if partyelec_id==	3200906
replace 	party_id_Manifesto=	.a	 if partyelec_id==	3200920
replace 	party_id_Manifesto=	.a	 if partyelec_id==	3200997
replace 	party_id_Manifesto=	53620	 if partyelec_id==	4200701
replace 	party_id_Manifesto=	53520	 if partyelec_id==	4200702
replace 	party_id_Manifesto=	53110	 if partyelec_id==	4200703
replace 	party_id_Manifesto=	53320	 if partyelec_id==	4200704
replace 	party_id_Manifesto=	53420	 if partyelec_id==	4200705
replace 	party_id_Manifesto=	53951	 if partyelec_id==	4200706
replace 	party_id_Manifesto=	.a	 if partyelec_id==	4200707
replace 	party_id_Manifesto=	34511	 if partyelec_id==	5200701
replace 	party_id_Manifesto=	34313	 if partyelec_id==	5200702
replace 	party_id_Manifesto=	34511	 if partyelec_id==	5200901
replace 	party_id_Manifesto=	34313	 if partyelec_id==	5200902
replace 	party_id_Manifesto=	34511	 if partyelec_id==	5201201
replace 	party_id_Manifesto=	34313	 if partyelec_id==	5201202
replace 	party_id_Manifesto=	34020	 if partyelec_id==	5201203
replace 	party_id_Manifesto=	34730	 if partyelec_id==	5201204
replace 	party_id_Manifesto=	34720	 if partyelec_id==	5201205
replace 	party_id_Manifesto=	34213	 if partyelec_id==	5201206
replace 	party_id_Manifesto=	14620	 if partyelec_id==	6201101
replace 	party_id_Manifesto=	14320	 if partyelec_id==	6201102
replace 	party_id_Manifesto=	14820	 if partyelec_id==	6201103
replace 	party_id_Manifesto=	14810	 if partyelec_id==	6201104
replace 	party_id_Manifesto=	14223	 if partyelec_id==	6201105
replace 	party_id_Manifesto=	14110	 if partyelec_id==	6201106
replace 	party_id_Manifesto=	14520	 if partyelec_id==	6201107
replace 	party_id_Manifesto=	14901	 if partyelec_id==	6201108
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201109
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201110
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201111
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201112
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201113
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201114
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201115
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201116
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201117
replace 	party_id_Manifesto=	.a	 if partyelec_id==	6201120
replace 	party_id_Manifesto=	21322	 if partyelec_id==	7200701
replace 	party_id_Manifesto=	21426	 if partyelec_id==	7200702
replace 	party_id_Manifesto=	21522	 if partyelec_id==	7200703
replace 	party_id_Manifesto=	21111	 if partyelec_id==	7200704
replace 	party_id_Manifesto=	.a	 if partyelec_id==	7200705
replace 	party_id_Manifesto=	21521	 if partyelec_id==	7200711
replace 	party_id_Manifesto=	21916	 if partyelec_id==	7200712
replace 	party_id_Manifesto=	21221	 if partyelec_id==	7200713
replace 	party_id_Manifesto=	21421	 if partyelec_id==	7200715
replace 	party_id_Manifesto=	21917	 if partyelec_id==	7200716
replace 	party_id_Manifesto=	21112	 if partyelec_id==	7200717
replace 	party_id_Manifesto=	21430	 if partyelec_id==	7200718
replace 	party_id_Manifesto=	21322	 if partyelec_id==	7201001
replace 	party_id_Manifesto=	21426	 if partyelec_id==	7201002
replace 	party_id_Manifesto=	21522	 if partyelec_id==	7201003
replace 	party_id_Manifesto=	21111	 if partyelec_id==	7201004
replace 	party_id_Manifesto=	21521	 if partyelec_id==	7201011
replace 	party_id_Manifesto=	21916	 if partyelec_id==	7201012
replace 	party_id_Manifesto=	21321	 if partyelec_id==	7201013
replace 	party_id_Manifesto=	21421	 if partyelec_id==	7201015
replace 	party_id_Manifesto=	21917	 if partyelec_id==	7201016
replace 	party_id_Manifesto=	21112	 if partyelec_id==	7201017
replace 	party_id_Manifesto=	21430	 if partyelec_id==	7201018
replace 	party_id_Manifesto=	.a	 if partyelec_id==	7201019
replace 	party_id_Manifesto=	22521	 if partyelec_id==	8200601
replace 	party_id_Manifesto=	22320	 if partyelec_id==	8200602
replace 	party_id_Manifesto=	22220	 if partyelec_id==	8200603
replace 	party_id_Manifesto=	22420	 if partyelec_id==	8200604
replace 	party_id_Manifesto=	22110	 if partyelec_id==	8200606
replace 	party_id_Manifesto=	22526	 if partyelec_id==	8200607
replace 	party_id_Manifesto=	22330	 if partyelec_id==	8200608
replace 	party_id_Manifesto=	22952	 if partyelec_id==	8200609
replace 	party_id_Manifesto=	22951	 if partyelec_id==	8200610
replace 	party_id_Manifesto=	35211	 if partyelec_id==	10200901
replace 	party_id_Manifesto=	35520	 if partyelec_id==	10200902
replace 	party_id_Manifesto=	999999	 if partyelec_id==	10200903
replace 	party_id_Manifesto=	35313	 if partyelec_id==	10200904
replace 	party_id_Manifesto=	35311	 if partyelec_id==	10200905
replace 	party_id_Manifesto=	35211	 if partyelec_id==	10201101
replace 	party_id_Manifesto=	35520	 if partyelec_id==	10201102
replace 	party_id_Manifesto=	999999	 if partyelec_id==	10201103
replace 	party_id_Manifesto=	35313	 if partyelec_id==	10201105
replace 	party_id_Manifesto=	35311	 if partyelec_id==	10201106
replace 	party_id_Manifesto=	83411	 if partyelec_id==	11201102
replace 	party_id_Manifesto=	83430	 if partyelec_id==	11201103
replace 	party_id_Manifesto=	83612	 if partyelec_id==	11201104
replace 	party_id_Manifesto=	.a	 if partyelec_id==	11201105
replace 	party_id_Manifesto=	83110	 if partyelec_id==	11201106
replace 	party_id_Manifesto=	83611	 if partyelec_id==	11201107
replace 	party_id_Manifesto=	83410	 if partyelec_id==	11201108
replace 	party_id_Manifesto=	.a	 if partyelec_id==	11201110
replace 	party_id_Manifesto=	15328	 if partyelec_id==	12200901
replace 	party_id_Manifesto=	15810	 if partyelec_id==	12200902
replace 	party_id_Manifesto=	15620	 if partyelec_id==	12200903
replace 	party_id_Manifesto=	15111	 if partyelec_id==	12200904
replace 	party_id_Manifesto=	15420	 if partyelec_id==	12200905
replace 	party_id_Manifesto=	15430	 if partyelec_id==	12200906
replace 	party_id_Manifesto=	86061	 if partyelec_id==	13201001
replace 	party_id_Manifesto=	86522	 if partyelec_id==	13201002
replace 	party_id_Manifesto=	86220	 if partyelec_id==	13201003
replace 	party_id_Manifesto=	86710	 if partyelec_id==	13201004
replace 	party_id_Manifesto=	86110	 if partyelec_id==	13201005
replace 	party_id_Manifesto=	.a	 if partyelec_id==	13201020
replace 	party_id_Manifesto=	.a	 if partyelec_id==	13201097
replace 	party_id_Manifesto=	42320	 if partyelec_id==	14200801
replace 	party_id_Manifesto=	42520	 if partyelec_id==	14200802
replace 	party_id_Manifesto=	42110	 if partyelec_id==	14200803
replace 	party_id_Manifesto=	42420	 if partyelec_id==	14200804
replace 	party_id_Manifesto=	42710	 if partyelec_id==	14200805
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200806
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200807
replace 	party_id_Manifesto=	42220	 if partyelec_id==	14200808
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200809
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200810
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200811
replace 	party_id_Manifesto=	.a	 if partyelec_id==	14200814
replace 	party_id_Manifesto=	11810	 if partyelec_id==	15201001
replace 	party_id_Manifesto=	.a	 if partyelec_id==	15201002
replace 	party_id_Manifesto=	11420	 if partyelec_id==	15201003
replace 	party_id_Manifesto=	11520	 if partyelec_id==	15201004
replace 	party_id_Manifesto=	11110	 if partyelec_id==	15201005
replace 	party_id_Manifesto=	11620	 if partyelec_id==	15201006
replace 	party_id_Manifesto=	11320	 if partyelec_id==	15201007
replace 	party_id_Manifesto=	11710	 if partyelec_id==	15201008
replace 	party_id_Manifesto=	11220	 if partyelec_id==	15201009
replace 	party_id_Manifesto=	13229	 if partyelec_id==	16201101
replace 	party_id_Manifesto=	13230	 if partyelec_id==	16201102
replace 	party_id_Manifesto=	13320	 if partyelec_id==	16201103
replace 	party_id_Manifesto=	13410	 if partyelec_id==	16201104
replace 	party_id_Manifesto=	13520	 if partyelec_id==	16201105
replace 	party_id_Manifesto=	13001	 if partyelec_id==	16201106
replace 	party_id_Manifesto=	13420	 if partyelec_id==	16201107
replace 	party_id_Manifesto=	13620	 if partyelec_id==	16201108
replace 	party_id_Manifesto=	13720	 if partyelec_id==	16201109
replace 	party_id_Manifesto=	.a	 if partyelec_id==	17201204
replace 	party_id_Manifesto=	93031	 if partyelec_id==	17201205
replace 	party_id_Manifesto=	.a	 if partyelec_id==	17201206
replace 	party_id_Manifesto=	.a	 if partyelec_id==	17201207
replace 	party_id_Manifesto=	.a	 if partyelec_id==	17201208
replace 	party_id_Manifesto=	93061	 if partyelec_id==	17201209
replace 	party_id_Manifesto=	93951	 if partyelec_id==	17201210
replace 	party_id_Manifesto=	93981	 if partyelec_id==	17201211
replace 	party_id_Manifesto=	82320	 if partyelec_id==	18200601
replace 	party_id_Manifesto=	82523	 if partyelec_id==	18200602
replace 	party_id_Manifesto=	82220	 if partyelec_id==	18200603
replace 	party_id_Manifesto=	82413	 if partyelec_id==	18200604
replace 	party_id_Manifesto=	82110	 if partyelec_id==	18200605
replace 	party_id_Manifesto=	12221	 if partyelec_id==	19200901
replace 	party_id_Manifesto=	12320	 if partyelec_id==	19200902
replace 	party_id_Manifesto=	12810	 if partyelec_id==	19200903
replace 	party_id_Manifesto=	12520	 if partyelec_id==	19200904
replace 	party_id_Manifesto=	12420	 if partyelec_id==	19200905
replace 	party_id_Manifesto=	12620	 if partyelec_id==	19200906
replace 	party_id_Manifesto=	12951	 if partyelec_id==	19200907
replace 	party_id_Manifesto=	32450	 if partyelec_id==	21201301
replace 	party_id_Manifesto=	32630	 if partyelec_id==	21201302
replace 	party_id_Manifesto=	32061	 if partyelec_id==	21201303
replace 	party_id_Manifesto=	32720	 if partyelec_id==	21201304
replace 	party_id_Manifesto=	32956	 if partyelec_id==	21201305
replace 	party_id_Manifesto=	32440	 if partyelec_id==	21201306
replace 	party_id_Manifesto=	32021	 if partyelec_id==	21201307
replace 	party_id_Manifesto=	32460	 if partyelec_id==	21201308
replace 	party_id_Manifesto=	32230	 if partyelec_id==	21201309
replace 	party_id_Manifesto=	32904	 if partyelec_id==	21201310
replace 	party_id_Manifesto=	32530	 if partyelec_id==	21201311
replace 	party_id_Manifesto=	54620	 if partyelec_id==	22201301
replace 	party_id_Manifesto=	54320	 if partyelec_id==	22201302
replace 	party_id_Manifesto=	.a	 if partyelec_id==	22201303
replace 	party_id_Manifesto=	.a	 if partyelec_id==	22201320
replace 	party_id_Manifesto=	51320	 if partyelec_id==	23201001
replace 	party_id_Manifesto=	51620	 if partyelec_id==	23201002
replace 	party_id_Manifesto=	51421	 if partyelec_id==	23201003
replace 	party_id_Manifesto=	51951	 if partyelec_id==	23201004
replace 	party_id_Manifesto=	51110	 if partyelec_id==	23201005
replace 	party_id_Manifesto=	51902	 if partyelec_id==	23201006
replace 	party_id_Manifesto=	51901	 if partyelec_id==	23201007
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201008
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201009
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201010
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201011
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201020
replace 	party_id_Manifesto=	.a	 if partyelec_id==	23201097


